package org.dromara.legal.domain.bo;

import org.dromara.legal.domain.Lawyer;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 律师业务对象 le_lawyer
 *
 * @author zhuqingrun
 * @date 2024-10-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Lawyer.class, reverseConvertGenerate = false)
public class LawyerBo extends BaseEntity {

    /**
     * 律师id
     */
    @NotNull(message = "律师id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 律师名
     */
    @NotBlank(message = "律师名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 所属事务所
     */
    private String office;

    /**
     * 入职日期
     */
    private Date hiredate;

    /**
     * 擅长领域
     */
    @NotBlank(message = "擅长领域不能为空", groups = { AddGroup.class, EditGroup.class })
    private String skill;

    /**
     * 律师电话
     */
    @NotBlank(message = "律师电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 律师头像
     */
    @NotBlank(message = "律师头像不能为空", groups = { AddGroup.class, EditGroup.class })
    private String avatar;



    /**
     * 备注
     */
    private String remark;


}
